<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <table border="1">
        <tr>
            <th>编号</th>
            <th>书名</th>
            <th>作者</th>
            <th>操作</th>
        </tr>
        {% for book in books %}
            <tr>
                <td> {{ book.id }} </td>
                <td> {{ book.name }} </td>
                <td> {{book.author}} </td>
                <td>
                    <a href="#">编辑</a>
                    <a href="#">删除</a>
                </td>
            </tr>
        {% endfor %}
    </table>
</body>
</html>